{volist name="tree" id="list"}

	<dl class="cate-item">
		<dt class="clearfix">
			<form action="{:url('add'.$model)}" method="post">
				<div class="btn-toolbar opt-btn clearfix">
					<a class="btn btn-mini btn-success" title={:lang("_EDIT_")} href="{:url('add'.$model.'?id='.$list['id'].'&pid='.$list['pid'])}">
						{:lang("_EDIT_")}
					</a>
					{eq name="list.status" value="1"}
					<a class="btn btn-mini btn-warning ajax-post" title="{$list.status|show_status_op}" href="{:url('set'.$model.'Status?ids='.$list['id'].'&status='.abs(1-$list['status']))}">
						{$list.status|show_status_op}
					</a>
					{else /}
					<a class="btn btn-mini btn-info ajax-post" title="{$list.status|show_status_op}" href="{:url('set'.$model.'Status?ids='.$list['id'].'&status='.abs(1-$list['status']))}">
						{$list.status|show_status_op}
					</a>
					{/eq}
					<a class="btn btn-mini btn-danger ajax-post confirm" title={:lang("_DELETE_")} href="{:url('set'.$model.'Status?ids='.$list['id'].'&status=-1')}">
						{:lang("_DELETE_")}
					</a>
					{eq name="canMove" value="true"}
                    <a class="btn btn-mini btn-warning ajax-post" title={:lang("_MOVE_WITH_DOUBLE_")} href="{:url('operate'.$model.'?type=move&from='.$list['id'])}">
                        {:lang("_MOBILE_")}
                    </a>
					{/eq}
                    {eq name="canMerge" value="true"}
                    <a class="btn btn-mini btn-warning ajax-post" title={:lang("_MERGER_WITH_DOUBLE_")} href="{:url('operate'.$model.'?type=merge&from='.$list['id'])}">
                        {:lang("_MERGE_")}
                    </a>
                    {/eq}

				</div>
				<div class="fold"><i></i></div>
				<div class="order"><input type="text" name="sort" class="form-control text input-mini" value="{$list.sort}"></div>

				<div class="name">
					<span class="tab-sign"></span>
					<input type="hidden" name="id" value="{$list.id}">
					<input type="text" name="title" class="form-control text" style="width: 200px;display: inline-block" value="{$list.title}">
                    {if condition="$level gt 0"}
                        <a class="add-sub-cate" title={:lang("_ADD_A_SUB_CATEGORY_WITH_DOUBLE_")} href="{:url('add'.$model.'?pid='.$list['id'])}">
                            <i class="icon-plus"></i>
                        </a>
                    {/if}
					<span class="help-inline msg"></span>
				</div>
			</form>
		</dt>

		{notempty name="list['_']"}
			<dd>
                {php}
                    $tree_list = new app\admin\builder\AdminTreeListBuilder();
                    $tree_list->setLevel($level);
                    $tree_list->setModel($model);
                    $tree_list->tree($list['_']);
                {/php}
			</dd>
		{/notempty}
	</dl>

{/volist}
